import store from '@/store'
export default {
  methods: {
    checkPermission(key) {
      const userInfo = store.state.user.userInfo
      store.state.user.userInfo.roles.points
      if (userInfo.roles && userInfo.roles.points) {
        return userInfo.roles.points.includes(key)
      }
      return false
    }
  }
}
